#!/bin/bash

# ----------------------------------------------------------------------
# Filename:   75552-lua.sh
# Version:    1.0
# Date:       2013/12/02
# Author:     yuanhui.shi
# Email:      yuanhui.shi@cs2c.com.cn
# Summary:    02系统基本功能-07开发环境-01语言支持-03LUA语言
# Notes:      LUA语言
# Copyright:  China Standard Software Co., Ltd.
# History：     
#             Version 1.0, 2013/12/02
#             -   The first one
# ----------------------------------------------------------------------

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

source ../../lib/XmlParse.sh


function CleanData ()
{
  rm -rf hello.lua
  EchoInfo "75552-lua.sh执行完毕"
}

trap "CleanData" EXIT INT

#执行lua文件
echo "#!/usr/bin/lua" >hello.lua
echo "print ('hello world')" >>hello.lua
cat hello.lua
[ "`/usr/bin/lua hello.lua`" == "hello world" ]
EchoResult "执行.py文件成功"

